<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        img {
            width: 100px;
            height: 100px;
        }
    </style>
</head>

<body>
    <img src="./img/a67d22581ae0928d6568b27740171d7.jpg" alt="">
    <div>

    </div>
</body>
<script src="./jquery-3.7.1.min.js"></script>
<script>
    // attr 获取属性值
    // text() 获取文本
    // html() 获取文本，html标签
    let src1 = $("img").click(function () {
        alert($(this).attr('width'));
    });
    $("div").html('<span style="color:red;border: 1px solid pink;">111111</span>')
</script>

</html>